<extend name="layout/edit" />

<block name="HEADER">
   
</block>

<block name="CONTENT">
    <control:Form id="form"/>
</block>

<block name="FOOTER">
   <script type="text/javascript">
    var  page=(function(ns){
        
        //页面初始化
        ns.init=function(){
            forms = layui.forms;
        }
        
        //保存
        ns.add=function(){
            form.save(1).then(function(res){
                form.opener.grid.load();
            });
        }
        
        
        return ns;
    }({}));
    
    //加载当前页面需要的控件和配置
    $(function(){  page.init();  });
   </script>
</block>



